package cn.dinxian.api;

import cn.dinxian.entity.ActTaskDTO;
import cn.dinxian.entity.BaseDTO;
import cn.dinxian.entity.CommonResult;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author dingxian
 * @Title:
 * @param:
 * @return:
 * @Date 2023/2/21 21:46
 * @Description:
 */

@Component
@FeignClient(value = "activiti-provider")
public interface TaskService {
  @PostMapping( "TaskService-provider/TaskQueryByKey")
  public String TaskQuery(String processDefinitionKey);
  
  @PostMapping( "TaskService-provider/complete")
  public void complete(BaseDTO baseDTO); 
  
  @PostMapping( "TaskService-provider/tasks")
  public CommonResult<List<ActTaskDTO>> tasks(ActTaskDTO baseDTO);  
  
  @PostMapping( "TaskService-provider/getUserTaskForm")
  public CommonResult<ActTaskDTO> getUserTaskForm(ActTaskDTO baseDTO);

}
